package com.gwtapps.messenger.client.model;

import com.google.gwt.user.client.rpc.IsSerializable;


public class Contact implements IsSerializable
{
	public int gridx; // the character grid which is clicked
	public int gridy;
	public int direction; 
	public int charPosOnMapX; // the character position on the map
	public int charPosOnMapY;
	public int health; // health status
	private String name;
	
	public Contact(){}

	public Contact( String name, int gridx, int gridy, int direction, int charPosOnMapX,
			int charPosOnMapY, int healt) {
		
		super();
		this.gridx = gridx;
		this.gridy = gridy;
		this.direction = direction;
		this.charPosOnMapX = charPosOnMapX;
		this.charPosOnMapY = charPosOnMapY;
		this.health = healt;
		this.name = name;
	}

//	public Contact(int gx,int gy ){
//		this.gridx = gx;
//		this.gridy = gy;
//	}
	public String getName(){
		return name;
	}
}
